package com.xiaoyu.tool.repository.kefu;

import com.xiaoyu.tool.entity.kefu.KefuNews;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author xiaoyu on 2018/7/2
 */

@Repository
public interface KefuNewsRepository extends JpaRepository<KefuNews,Long> {

    KefuNews findByEventKey(String eventKey);

    KefuNews findByEventAndEventKeyIsNull(String event);

    KefuNews findByEventAndEventKeyLike(String event, String eventKey);

    KefuNews findByEventAndEventKey(String event, String eventKey);

    KefuNews findByEventIsNullAndEventKey(String eventKey);

}



